//Created by wangshuyi on 07/03/2018.

'use strict';

//plugin
import core from './core/Dol-core'
import ajax from './ajax/Dol-ajax'
import dict from './dict/Dol-dict'
import util from './util/Dol-util'

//component
import DolDict from './dict/Dol-dict.vue'
import DolLoading from './loading/Dol-loading'

import DolAddressPicker from './address/Dol-address-picker'
import DolAddressFormItem from './address/Dol-address-form-item'
import DolCascadePicker from './picker/Dol-cascade-picker'
import DolCascadeFormItem from './picker/Dol-cascade-form-item'

import DolSelect from './select/Dol-select-mobile'

import DolUpload from './upload/Dol-upload-mobile'

import DolLoadMore from './list/Dol-load-more'
import DolLoadList from './list/Dol-load-list'

export default {
  install(Vue){
    Vue.prototype.$Dolphin = core;
    Vue.prototype.$ajax = ajax;
    Vue.prototype.$dict = dict;
    Vue.prototype.$util = util;

    Vue.component('dol-dict',DolDict);
    Vue.component('dol-loading',DolLoading);

    Vue.component('dol-address-picker',DolAddressPicker);
    Vue.component('dol-address-form-item',DolAddressFormItem);
    Vue.component('dol-cascade-picker',DolCascadePicker);
    Vue.component('dol-cascade-form-item',DolCascadeFormItem);

    Vue.component('dol-select',DolSelect);

    Vue.component('dol-upload',DolUpload);

    Vue.component('dol-load-more',DolLoadMore);
    Vue.component('dol-load-list',DolLoadList);
  }
}
